package study.kit.eggs.exception;

import lombok.Getter;

@Getter
public abstract class BaseException extends RuntimeException {

    private String errCode;

    private String errDesc;

    public BaseException() {
        super();
    }

    public BaseException(String errCode, String errDesc, String details) {
        super(details);
        this.errCode = errCode;
        this.errDesc = errDesc;
    }

    public BaseException(String errCode, String errDesc, Throwable cause) {
        super(cause);
        this.errCode = errCode;
        this.errDesc = errDesc;
    }
}
